#ifndef WIDGET_H
#define WIDGET_H
#include <QStackedWidget>
#include <QMainWindow>
#include <QMenuBar>
#include <QAction>
#include "managewidget.h"
#include "chartwidget.h"
#include "changepasswordwidget.h"
#include "adduserwidget.h"
#include "showdatawidget.h"
#include "managedatawidget.h"


class Widget : public QMainWindow
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();
    QMenu* manageMenu;
    QMenu* passwordMenu;
    QMenu* dataMenu;
    QAction* manageAction;
    QAction* chartAction;
    QAction* quitAction;
    QAction* changePasswordAction;
    QAction* addUserAction;
    QAction* deleteUserAction;
    QAction* manageDataAction;
    QAction* showDataAction;
private slots:
    void on_manageMenu_clicked();
    void on_chartMenu_clicked();
    void on_quitMenu_clicked();
    void on_changePasswordAction_clicked();
    void on_addUserAction_clicked();
    void on_manageDataAction_clicked();
    void on_showDataAction_clicked();
private:
    QStackedWidget* stackedWidget;
    ManageWidget* manageWidget;
    ChartWidget* chartWidget;
    ChangePasswordWidget* changePasswordWidget;
    AddUserWidget* addUserWidget;
    ManageDataWidget* manageDataWidget;
    ShowDataWidget* showDataWidget;
    void createMenuBar();
};

#endif // WIDGET_H
